package com.kasax.utils;

import androidx.annotation.NonNull;

import java.io.File;

public class FileUtil {
    /**
     * 创建目录
     *
     * @param path
     * @return
     */
    public static String createDir(@NonNull String path) {
        if (path.isEmpty()) {
            return "";
        }

        File cacheDir = new File(path);
        if (!cacheDir.exists()) {
            cacheDir.mkdirs();
        }
        return cacheDir.getAbsolutePath();
    }
}
